package com.woniu.humanresource.entity;

import java.math.BigDecimal;
import java.util.Date;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zyq
 * @since 2022-07-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="AttendanceStyle对象", description="")
public class AttendanceStyle implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @ExcelProperty(value = "id")
    @TableField("id")
    private Long id;

    @ExcelProperty(value = "序号")
    @ApiModelProperty(value = "序号")
    @TableField("serial_number")
    private Integer serialNumber;

    @ExcelProperty(value = "类型编号")
    @ApiModelProperty(value = "考勤id")
    @TableField("attendance_style_id")
    private String attendanceStyleId;

    @ExcelProperty(value = "考勤类别")
    @ApiModelProperty(value = "考勤类型")
    @TableField("style")
    private String style;

    @ExcelProperty(value = "类型")
    @TableField("type")
    @ApiModelProperty(value = "类型(详情)")
    private String type;

    @ExcelProperty(value = "单位")
    @TableField("units")
    @ApiModelProperty(value = "单位")
    private String units;

    @ExcelProperty(value = "精度")
    @TableField("precisions")
    @ApiModelProperty(value = "精度说明")
    private String precisions;

    @ExcelProperty(value = "允许申请")
    @TableField("is_allow")
    @ApiModelProperty(value = "允许申请")
    private String isAllow;

    @ExcelProperty(value = "最小申请值")
    @TableField("least_value")
    @ApiModelProperty(value = "最小申请值")
    private BigDecimal leastValue;

    @ExcelProperty(value = "是否包含休息日")
    @TableField("is_dayoff")
    @ApiModelProperty(value = "是否包含休息日")
    private String isDayoff;

    @ExcelProperty(value = "是否包含节假日")
    @TableField("is_holidays")
    @ApiModelProperty(value = "是否包含节假日")
    private String isHolidays;

    @ExcelProperty(value = "备注")
    @TableField("remark")
    @ApiModelProperty(value = "备注")
    private String remark;

    @ExcelProperty(value = "创建人")
    @TableField("founder")
    @ApiModelProperty(value = "创建人")
    private String founder;

    @ExcelProperty(value = "创建时间")
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "gmt_create",fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ExcelProperty(value = "更新人")
    @TableField("updater")
    @ApiModelProperty(value = "更新人")
    private String updater;

    @ExcelProperty(value = "更新时间")
    @ApiModelProperty(value = "更新时间")
    @TableField(value = "get_modified",fill = FieldFill.INSERT_UPDATE)
    private Date getModified;

    @ExcelProperty(value = "deleted")
    @TableField("deleted")
    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    private Integer deleted;

    @ExcelProperty(value = "version")
    @TableField("version")
    @ApiModelProperty(value = "乐观锁")
    @Version
    private Integer version;


}
